import request from '../utils/request' // 引入axios的封装方法
import cfg from '@/config/config'

const forgotCardManageApi = {
  // 根据工号查询员工信息
  getForgotCardEmpInfo: param => {
    return request('post', cfg.apiUrl + 'api/forgot/card/getForgotCardEmpInfo?userNo='+ param)
  },
  // 扫码获取员工信息
  getScanInfoList: param => {
    return request('post', cfg.apiUrl + 'api/forgot/card/getScanInfoList', param)
  },
  // 保存忘带卡员工信息
  addForgotCardEmpInfo: param => {
    return request('post', cfg.apiUrl + 'api/forgot/card/addForgotCardEmpInfo', param)
  },
  // 获取忘带卡明细列表
  getForgotCardEmpList: param => {
    return request('post', cfg.apiUrl + 'api/forgot/card/getForgotCardEmpList', param)
  },
  // 员工忘带卡数据统计
  getForgotCardStatistical: param => {
    return request('post', cfg.apiUrl + 'api/forgot/card/getForgotCardStatistical', param)
  },
  // 员工忘带卡排名统计
  getForgotCardRankStatistical: param => {
    return request('post', cfg.apiUrl + 'api/forgot/card/getForgotCardRankStatistical', param)
  },

  // 获取员工黑名单信息列表
  getBlackEmpList: param => {
    return request('post', cfg.apiUrl + 'api/forgot/card/getBlackEmpList', param)
  },
  // 根据工号查询员工信息（加入黑名单使用）
  getBlackEmpInfo: param => {
    return request('post', cfg.apiUrl + 'api/forgot/card/getBlackEmpInfo?userNo='+ param)
  },
  // 保存员工黑名单信息
  addBlackEmpInfo: param => {
    return request('post', cfg.apiUrl + 'api/forgot/card/addBlackEmpInfo', param)
  },
  // 删除员工黑名单信息
  delBlackEmpInfo: param => {
    return request('post', cfg.apiUrl + 'api/forgot/card/delBlackEmpInfo', param)
  },

}
export default forgotCardManageApi


